package day12.hmoework20;

/**
 * 农民类
 */
public class Farmer extends Data implements Mint,Attack,Treat{
    public Farmer(){}
    public Farmer(String name,int level){
        super(name,level);
    }
    @Override
    public void attack() {
        System.out.println("我是" + this.getLevel() + "级的" +getName() + "我可以攻击");
    }

    @Override
    public void mint() {
        System.out.println("我是" + this.getLevel() + "级的" +getName() + "我可以采矿");
    }

    @Override
    public void treat() {
        System.out.println("我是" + this.getLevel() + "级的" +getName() + "我可以治疗");
    }
}
